package com.yonyou.cyxdms.basedata.service.entity.questionaire;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 答案组
 * </p>
 *
 * @author renwd
 * @since 2019-09-19
 */
@TableName("tm_answer_group")
public class AnswerGroupPO extends DMSBasePO<AnswerGroupPO> {

    private static final long serialVersionUID = 1L;

    /**
     * 答案组ID
     */
    @TableId(value = "ANSWER_GROUP_ID", type = IdType.AUTO)
    private Long answerGroupId;

    @TableField("APP_ID")
    private String appId;

    /**
     * 公司代码
     */
    @TableField("COMPANY_CODE")
    private String companyCode;
    /**
     * 所有者代码
     */
    @TableField("OWNER_CODE")
    private String ownerCode;
    /**
     * 所有者的父组织代码（用于二网使用）
     */
    @TableField("OWNER_PAR_CODE")
    private String ownerParCode;
    /**
     * 答案编码
     */
    @TableField("ANSWER_GROUP_NO")
    private String answerGroupNo;
    /**
     * 答案名称
     */
    @TableField("ANSWER_GROUP_NAME")
    private String answerGroupName;
    /**
     * 答案说明
     */
    @TableField("ANSWER_GROUP_DESCRIPT")
    private String answerGroupDescript;
    /**
     * 数据来源(1045)
     */
    @TableField("DATA_SOURCES")
    private Integer dataSources;
    /**
     * 是否启用
     */
    @TableField("IS_VALID")
    private Integer isValid;
    /**
     * 来源ID
     */
    @TableField("SOURCE_ID")
    private Long sourceId;
    /**
     * 来源日期
     */
    @TableField("SOURCE_CHANGED_AT")
    private LocalDateTime sourceChangedAt;

    public AnswerGroupPO() {
        super();
    }

    public Long getAnswerGroupId() {
        return answerGroupId;
    }

    public void setAnswerGroupId(Long answerGroupId) {
        this.answerGroupId = answerGroupId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getOwnerParCode() {
        return ownerParCode;
    }

    public void setOwnerParCode(String ownerParCode) {
        this.ownerParCode = ownerParCode;
    }

    public String getAnswerGroupNo() {
        return answerGroupNo;
    }

    public void setAnswerGroupNo(String answerGroupNo) {
        this.answerGroupNo = answerGroupNo;
    }

    public String getAnswerGroupName() {
        return answerGroupName;
    }

    public void setAnswerGroupName(String answerGroupName) {
        this.answerGroupName = answerGroupName;
    }

    public String getAnswerGroupDescript() {
        return answerGroupDescript;
    }

    public void setAnswerGroupDescript(String answerGroupDescript) {
        this.answerGroupDescript = answerGroupDescript;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public LocalDateTime getSourceChangedAt() {
        return sourceChangedAt;
    }

    public void setSourceChangedAt(LocalDateTime sourceChangedAt) {
        this.sourceChangedAt = sourceChangedAt;
    }

    @Override
    protected Serializable pkVal() {
        return this.answerGroupId;
    }

    @Override
    public String toString() {
        return "AnswerGroupPO{" +
                "answerGroupId=" + answerGroupId +
                ", appId=" + appId +
                ", companyCode=" + companyCode +
                ", ownerCode=" + ownerCode +
                ", ownerParCode=" + ownerParCode +
                ", answerGroupNo=" + answerGroupNo +
                ", answerGroupName=" + answerGroupName +
                ", answerGroupDescript=" + answerGroupDescript +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", sourceId=" + sourceId +
                ", sourceChangedAt=" + sourceChangedAt +
                "}";
    }

}
